package learnjava.interview;

import java.text.SimpleDateFormat;
import java.util.*;

public class Bili {

    public static void main1(String[] args) {

        int[] input = {1,3,2,3,2,2,1,2};
        int N = 1;

        HashMap<Integer,Integer> count = new HashMap<>();

        for (int i = 0; i < input.length; i++) {
            count.put(input[i],count.getOrDefault(input[i],0)+1);
        }

        int[][] intAndCount = new int[count.size()][2];
        int i = 0;
        for (int key: count.keySet()) {
            intAndCount[i++] = new int[]{key,count.get(key)};
        }

        Arrays.sort(intAndCount, new Comparator<int[]>() {
            @Override
            public int compare(int[] o1, int[] o2) {
                return o2[1]==o1[1]?o1[0]-o2[0]:o2[1]-o1[1];
            }
        });

        if(N>=intAndCount.length) System.out.println(-1);
        System.out.println(intAndCount[N-1][0]+","+intAndCount[N-1][1]);

    }

    public static void main(String[] args) throws Exception{

        Scanner sc = new Scanner(System.in);
        String date0 = sc.nextLine();
        String ops = sc.nextLine();

        SimpleDateFormat sdf = new SimpleDateFormat( "yyyy-MM-dd HH:mm:ss");
        Calendar cld = Calendar.getInstance();
        long dd = sdf.parse(date0).getTime(), newTime = 0;
//        switch (ops.charAt(3)){
//            case 'W':
//                int x = Integer.parseInt(ops.substring(1,ops.length()-1));
//                if(ops.charAt(0)=='+') date =
//                break;
//        }
    }
}
